package org.myframework.model;

public class ServiceResult {
	
	/**
	 * 是否成功
	 */
	private boolean success;
	
	/**
	 * 错误类型
	 */
	private String errorType;
	
	/**
	 * 错误消息
	 */
	private String errorMessage;
	/**
	 * 所有记录的总数
	 */
	private Integer resultCount = null;
	/**
	 * 记录的页数
	 */
	private Integer pageCount = null;
	/**
	 * 当前页码
	 */
	private Integer pageIndex = null;

	/**
	 * 结果的内容
	 */
	private Object content;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getErrorType() {
		return errorType;
	}

	public void setErrorType(String errorType) {
		this.errorType = errorType;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public Integer getResultCount() {
		return resultCount;
	}

	public void setResultCount(Integer resultCount) {
		this.resultCount = resultCount;
	}

	public Integer getPageCount() {
		return pageCount;
	}

	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}

	public Integer getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	public Object getContent() {
		return content;
	}

	public void setContent(Object content) {
		this.content = content;
	}
	
}
